<template>
	<view>
		<!-- <view class="" :style="'height:'+statusBarHeight+'rpx'"></view> -->
		<u-navbar :placeholder="true" :autoBack="true" bgColor="#F2F2F2" leftIconSize="23">
			<view class="navbarleft flex" slot='left'>
				<u-icon name="arrow-left" :bold="true"></u-icon>
				<view class="" style="margin-left: 40rpx;">
					<view class="text1">质押 TOPS</view>
					<view class="text2">单价 ￥10.12</view>
				</view>
			</view>
		</u-navbar>
		<view class="ordermain">
			<view class="ordermain_top">
				<view class="left flex">
					<view class="left_text" @click="btnsel(1)">
						<view class="name">质押数量</view>
					</view>
				</view>
			</view>
			<view class="ordermain_center flex-between">
				<input type="text" placeholder="0.00" />
				<view class="">
					TOPS <span>最大</span>
				</view>
			</view>
			<view class="maxnum">最大 ￥9,888.06</view>
			<view class="text flex-between">
				<view class="">预计每日奖励 </view>
				<view class="">-TOPS</view>
			</view>
			<view class="text flex-between">
				<view class="">质押到账时长 </view>
				<view class="">6天</view>
			</view>
		</view>
		<view class="btnsub" @click="showpaw=true">
			立即质押
		</view>
		<u-overlay :show="showpaw">
			<view class="showpaw">
				<view class="text">输入交易密码</view>
				<u-code-input v-model="payvalue" size='32' fontSize='14' color='#333333' space='5'
					:maxlength="6"></u-code-input>
				<view class="btn flex-between">
					<view class="btn_close" @click="showpaw=false">取消</view>
					<view class="btn_sure">确定</view>
				</view>
			</view>
		</u-overlay>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				statusBarHeight: 0,
				showpaw: false,
				payvalue: ''
			}
		},
		onLoad() {
			const phoneInfo = uni.getSystemInfoSync(); // 获取手机系统信息
			this.statusBarHeight = phoneInfo.statusBarHeight
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.navbarleft {
		font-weight: 600;
		font-size: 32rpx;
		color: #19181A;

		.text2 {
			font-weight: 400;
			font-size: 24rpx;
			color: #19181A;
		}
	}

	.ordermain {
		width: 690rpx;
		height: 407rpx;
		background: #FFFFFF;
		border-radius: 24rpx;
		margin: 30rpx auto;
		box-sizing: border-box;
		padding: 0 30rpx;

		&_top {
			padding-top: 20rpx;

			.left {
				font-weight: 400;
				font-size: 28rpx;
				color: #333333;

				&_text {
					margin-right: 40rpx;
				}

				&_line {
					width: 36rpx;
					height: 8rpx;
					border-radius: 4rpx;
					margin: 20rpx auto 0;
				}

				.isline {
					background: #9999FF;
				}

				.isname {
					color: #333333;
				}
			}
		}

		&_center {
			font-weight: 500;
			font-size: 32rpx;
			color: #333333;
			margin-top: 60rpx;
			border-bottom: 1rpx solid #666666;
			padding-bottom: 20rpx;

			span {
				color: #9999FF;
				margin-left: 30rpx;
			}
		}

		.maxnum {
			font-weight: 400;
			font-size: 24rpx;
			color: #999999;
			margin-top: 20rpx;
			margin-bottom: 40rpx;
		}

		.text {
			margin-top: 10rpx;
			font-weight: 400;
			font-size: 28rpx;
			color: #333333;
		}
	}

	.btnsub {
		width: 630rpx;
		height: 64rpx;
		background: $uni-color-primary;
		border-radius: 44rpx;
		font-weight: 500;
		font-size: 28rpx;
		color: #FFFFFF;
		text-align: center;
		line-height: 64rpx;
		margin: 0 auto;
		margin-top: 90rpx;

	}

	.showpaw {
		// width: 500rpx;
		height: 316rpx;
		background: #FFFFFF;
		border-radius: 24rpx;
		position: fixed;
		top: 30%;
		left: 137rpx;
		box-sizing: border-box;
		padding: 40rpx 30rpx;

		.text {
			font-weight: 500;
			font-size: 30rpx;
			color: #333333;
			text-align: center;
			margin-bottom: 30rpx;
		}

		.btn {
			margin-top: 40rpx;

			&_close {
				width: 186rpx;
				height: 72rpx;
				border-radius: 40rpx;
				border: 2rpx solid #9999FF;
				font-weight: 500;
				font-size: 26rpx;
				color: #9999FF;
				line-height: 72rpx;
				text-align: center;
			}

			&_sure {
				width: 186rpx;
				height: 72rpx;
				background: #9999FF;
				border-radius: 40rpx;
				font-weight: 500;
				font-size: 26rpx;
				color: #FFFFFF;
				line-height: 72rpx;
				text-align: center;
			}
		}
	}
</style>